package com.guanyong.model;

/**
 * Created by mxk on 2017/9/19.
 */
public class KeyPingfenModel implements Comparable<KeyPingfenModel>{
    private  int baseId;
    private  String name;
    private  float doubanScore;
    private  float maoyanScore;

    public int getBaseId() {
        return baseId;
    }

    public void setBaseId(int baseId) {
        this.baseId = baseId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public float getDoubanScore() {
        return doubanScore;
    }

    public void setDoubanScore(float doubanScore) {
        this.doubanScore = doubanScore;
    }

    public float getMaoyanScore() {
        return maoyanScore;
    }

    public void setMaoyanScore(float maoyanScore) {
        this.maoyanScore = maoyanScore;
    }

    @Override
    public int compareTo(KeyPingfenModel o) {
        return Float.valueOf(o.getDoubanScore()+o.getMaoyanScore()).compareTo(Float.valueOf(this.getDoubanScore()+this.getMaoyanScore()));
    }
}
